/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yang
 * Date: 2022-05-14
 * Time: 12:42
 */


public class Main {
    public static void main(String[] args) {
        int num1 = 1;
        class InnerClass{
            private int num2 = 2;
            //public static int num3 = 3;
            public static final int num4 = 4;

            public void show(){
                System.out.println(num1);
                System.out.println(num2);
                //System.out.println(num3);//不能定义static成员
                System.out.println(num4);
            }
        }
        //静态内部类创建对象
        InnerClass in = new InnerClass();
        in.show();
    }
}
